<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/4 0004
 * Time: 12:12
 */

namespace app\lib\dadaapi;


class ToolsInco
{
    const is_prepay_0 = 0;  //是否需要垫付 1:是 0:否 (垫付订单金额，非运费)
    const is_prepay_1 = 0;


    public function inco($param){
        $newData=iconv("ASCII","utf-8", json_encode($param));
        $param = json_decode($newData);
        return $param;
    }

    //*********************达达配置项*************************
    public function getDataConfig(){
        $config = array();
        $config['app_key'] = 'dada72f2cdd5c620a92';
        $config['app_secret'] = '34c51a7967fa212c3e5362a3d4493cbe';
        $config['url'] = 'http://newopen.imdada.cn';
        $config['gao_de_key']='4b08a560549bc4634df36bc868aadb02';
        $config['source_id'] = '4297';
        $config['shop_no']='11047059';
        $config['notify'] = config('miniprogram.domain').'/api/dadaNotify/index';
        return $config;
    }

    /**
     *
     */
    public function getGaodeConfig(){
        $config = array();
        $config['key'] = "4b08a560549bc4634df36bc868aadb02";
        return $config;
    }


}